#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
int main()
{
  int fd = open("./1.txt",O_RDWR | O_CREAT ,0644);
  int ret = dup2(fd,STDOUT_FILENO);
  printf("ret = %d\n",ret);
  printf("I am a student who is learning English\n");
  return 0;
}
